071 live how to animate liquid level proportional logic in hmi
好吧..
Alright..
在本课中,我们将通过 HMI 可视化和控制液体控制,现在本课是上一课的扩展版本 - 我们已经了解了如何使其成为比例逻辑,现在我们要从 HMI 监控该逻辑,好吗?
in this lesson we are going to visualize and control the liquid control from HMI now this lesson is extended version of the last lesson- we have seen how to make it proportional logic now we are going to monitor that logic from the HMI okay?
正如您所看到的,目前我的水箱中的液位非常有限,您也可以在 HMI 屏幕上看到。
So as you can see that presently in my tank I have a very limited level and which you can see on the HMI screen as well..
这就是我们在本课中要做的,我只是向您展示最终的输出。
this is what we are going to make in this lesson I am just showing you the final output.
所以现在处于自动模式..
So right now this is in the auto mode..
这是手动模式吧..
this is in the manual mode right..
手动模式下两个阀门都关闭。
and the manual mode both the valves are OFF..
我可以通过给排水阀提供一些值来打开它..这将排出我的输入..
I can turn it on by giving some values to my draining valve..which will drain my input..
我的水位,你可以看到它正在被排空,如果我打开我的充水阀..你可以看到..这是打开的..
my water level you can see that this is getting drained and if i turn on my filling valve..you can see that ..this is ON..
这将填满我的水箱..好吧,所以我在手动模式下控制..
this is going to fill my tank ..Alright so I'm controlling in manual mode ..
我必须填充多少,我必须排出多少..
how much I have to fill and how much I have to drain ..
这样我就可以控制我的阀门..从这里开始,这是我的进水阀,这是我的排水阀..
so I can control my valve..from here this is my fill valve and that's my draining valve..
好吧..
Alright..
这是手动模式,我们不像上一课那样控制级别,我们给了一些你知道的设定点来控制级别,但这就是手动模式..但是如果我现在通过单击此进入“自动模式”在自动模式下单击按钮,您会发现这将遵循设定点,并且这里出现“错误”,所以当该值达到 9.0 时,这将停止,您可以看到这将达到 9.0 ..
this is the manual mode here we are not controlling the level like in the last lesson we were giving some you know set point to control the level but that's the manual mode..but if I go to the 'auto mode' now by clicking this button in the auto mode you will find that this will follow the set point and here you have the 'error' okay so this will stop when this value goes to 9.0 and you can see that this is going to 9.0 ..
如果我改变设定点,这个阀门就会自动关闭。
and this valve is getting closed automatically okay now if I change the set point ..
您可以看到错误为“0”..设置点为 9.0,反馈为 9.0..如果我将设置点更改为 50%..
you can see that the error is '0'..set point is 9.0 and the feedback is 9.0..if I change the set point to 50%..
填充阀关闭,排水打开,液位下降,这将下降..
filling valve is closed and draining is ON and level is decreasing and this will decrease ..
当错误变为“0”时..
when the error get '0' ..
这会停止吗?
this will STOP ?
排水将停止..您还可以看到排水正在关闭,因为这是比例控制..所以这是自动模式,然后您可以快速切换到“手动模式”..
The draining will STOP..you can also see the draining is getting closed because this is a proportional control ..so this was the auto mode and then you can quickly switch onto 'manual mode'..
在手动模式下,无论给排水阀和填充阀赋予什么值,都将受到控制,这不会遵循设定点。
in manual mode whatever value to give to your draining and filling valve..that will be controlled okay this is not following the set point.
那么让我们看看如何创建它..
So let's see how we can create that..
所以在这种情况下我要关闭它..
so in this case I'm going to close this..
这个程序是因为我在创建本课程之前创建了这个程序,然后单击此实时会话,所以我关闭这个程序,我将关闭这个程序,我们将从我们所做的最后一个逻辑开始,所以我将打开最后一个逻辑..好吧,所以让我们打开这个我们上次制作的项目,这是我们最后的逻辑,在这里我给了你一个作业..
this program because that I have created before creating this lesson before clicking this live session so I close this one and I will close this program and we will start with the last logic which we have made so I will open the last logic ..Alright so let's let's open this project which we have made last time okay so this was our last logic and here I have given you a homework..
如果你还记得我要求你..
if you remember I asked you to ..
让我打开这个 - 作业是在这里制作一个比例控制旋钮,以便我们可以将控制系统的增益从 0 更改为 10..
let me open this one- the homework was to make a proportional control knob here, so that we can change the gain of our control system from 0 to 10..
是的,但在这里我给你一个选项,你需要缩放该值,以便增益从 1 变化到 10..
right but here I give you an option that you need to scale the value so that the gain changes from 1-10..
就像这里这是 0-10 一样,但在程序中它应该是从 1-10 ..
like here this is 0-10 right but in the program it should be from 1-10..
不是“0”,这是主作业..所以如果您已经了解了比例逻辑,我们必须制定一个公式来从 0-10 到 1-10 的缩放中导出比例增益。
not '0' this was the home assignment ..so if you've seen the proportional logic we have to make a formula to derive the proportional gain from scaling from 0-10 to 1-10.
好吧,为了进行缩放,我们有一个公式,该公式表示缩放后的输出,这是一个标准公式,无论何时您要进行缩放 - 您必须遵循这个公式..
Alright, so to make that scaling we have this we have a formula and that formula says the scaled output this is a standard formula whenever you are going to do scaling - you have to follow this formula ..
好吧,现在你甚至可以记下这个方程,如果你想扩展你知道的输出,这非常重要,无论你使用哪个 PLC。
okay now you can even note down this equation this is very important doesn't matter which PLC you are using if you want to scale your output you know some time..
例如,我们的水箱范围为 0 到 300 厘米,这是我的水箱的范围..这就是我的水箱的高度。
for example we have this tank ranging from 0 to 300 cm that's the range of my tank..that's the height of my tank.
如果我想显示我的水箱的高度而不是......
If I want to display the height of my tank instead of ...
(好吧,我已经关闭了我的HMI)..而不是0-10..如果我想显示0到300的高度,那么在这种情况下我必须缩放我的输出好吧..
(alright i have closed my HMI) ..instead of 0-10 ..if I want to display the height in 0 to 300 then in that case I have to scaled my output okay..
所以为了缩放输出,我们有这个公式..
so to scale the output we have this formula..
它说(输出最大值 - 输出最小值)x(要缩放的输入) - (输入最小值)除以(输入最大值) - (输入最小值)+(输出最小值)好吧,所以这是一种复杂的程序,所以在我们的例子中我们必须缩放的输入是 0 到 10,我们需要的输出是 1 到 10 ..所以我们的偏移量为 1,所以如何做到这一点,你看这个公式,我们采用了一个变量 Kpp,这是我们的缩放输出它说输出最大值是“10”..
it says (output maximum - output minimum) x (input to be scaled) - (input minimum) divided by (input maximum) - (input minimum) + (output minimum) okay so it's the kind of complex program so in our case the input which we have to scale was 0 to 10 and the output which we need was 1 to 10 ..so we have an offset of 1 so how to do that is you see this formula we have took a variable Kpp this is our scaled output and it says output maximum was '10'..
这是我们需要的输出 - 输出最小值为“1”,所以我们在这里输入“1”,然后乘以输入以进行缩放,所以我首先在这里进行除法,然后将整个结果与这个 Kp 相乘,所以这个输入在这里进行缩放就可以了..
this is the output we need - output minimum which was '1' so we put '1' here and this is multiplied by input to be scale so I took this division here first and then I multiplied the whole thing with this Kp so this input to be scaled is here ok..
量表的输入为 Kp。
input to the scale was Kp.
Kp 是我们从该电位计获得的输入,好吧,然后输入最小值..输入最小值为 0.0..
Kp was the input which we are getting from this potentiometer, Alright then input minimum..input minimum was 0.0..
这是输入最小值..ok除以(输入最大值)-(输入最小值),所以这个除法在这里输入最大值是“10.0”..
this is the input minimum..ok divided by (input maximum) - (input minimum) so this division is here input maximum is '10.0'..
这是输入最大值 - 输入最小值为 0.0,所以我在这里输入“0.0”,总体加上输出最小值,所以输出最小值为“1.0” 这个“1”...所以我把它放在这里...所以当你有这个公式时您正在将“0 到 10”的范围缩放为“1 到 10”,好吧,所以让我们先检查一下这个,然后我们将继续处理 HMI。
this is input maximum - input minimum which was 0.0 so I put '0.0' here and overall plus with output minimum so output minimum was '1.0' This '1'...so I put it here ..so when you have this formula you are scaling the range of '0 to 10' to '1 to 10' okay so let's let's just check this one first and then we will proceed with the HMI.
所以我将使用 PLC SIM 来模拟这个逻辑,我们将在我们的编码中看到 Facotry IO 的效果。如果您不确定这个逻辑是如何在 SCL 中编写的……我会要求您观看最后一课...这是必修课吗?
So I'm going to simulate this logic using PLC SIM and we are going to see the effect of Facotry IO in our coding If you're not sure how this logic has been written in SCL..I would request you to please watch the last lesson ...that is mandatory?
那么我们的模拟要开始了吗?
So our simulation is going to start?
我们加载程序完成这...
We load the program finish And this...
我什么时候去监控它?
when I'm going to monitor it ?
好的!?
okay!?
现在你会看到这个 Kp 在这里,我必须再次制作这个。一旦你运行模拟器,这将被连接,稍等一下。
now you will see this Kp is here and I have to make this one again ..this will be connected once you are running your simulator Wait a sec..
好吧,我们有两个模拟(PLCSIM)..
okay we have two simulations (PLCSIM) ..
我必须关闭并重新启动它吗?
one I have to close and start it again?
可能这会有所帮助,现在它已连接,我会回到这里,所以是的...现在我们这里有这些值,所以这超过了设定点,这是我们的 Kp 好吗?
may be this will help okay now it is connected and I will go back here so yeah...now we have these values here so this was over setpoint and this is our Kp okay?
我可以改变Kp的值..
I can change the value of Kp..
Kp 是我的“增益”,这是我的设定点,我可以向您显示设定点,因此设定点为 2.5,相应地,它将填充液位,这是液位计,它将达到 2.5 并且会停止?
Kp is my 'gain' and this is my set point and I can show you set point so set point was 2.5 and accordingly it will fill the level this is the level meter it will reach 2.5 and it will stop?
这就是最后一个逻辑吧?
This is the last logic right?
现在查看 Kp,这是我的 Kp,如果我将 Kp 设置为“0”,但如果我进入内部并查看“Kpp”的值..
Now to see the Kp this was my Kp and if I make Kp '0' but if I go inside and see the value of 'Kpp'..
这相当于 1,你可以看到 Kpp 是“1”,所以在程序内部我的增益是 1,但在系统外部我的 Kp 是“0”...所以我们已经缩放了该值,所以当我取 Kp 等于 10 时,你会看到 Kpp 也等于 10..
this is equivalent to 1 you can see Kpp is '1' so inside the program my gain is 1 but outside the system my Kp is '0' ...so we have scaled the value so when I take Kp equivalent to 10 you will see Kpp is also equal to 10..
这是 1 点,这就是力量..
this is 1 dot and this is the power..
1 次方,所以 1 x 10^1 = 10 好吧,如果我让 KP 比方说 4.6,那么按比例该值是 5.17..
power by 1 so 1 x 10^1 = 10 okay if I make KP let's say 4.6 so proportionately the value is 5.17..
如果我在这里将 Kp 设为 0,但这里 Kpp 为“1”,那么我们可以看到 Kp 的值为 0 到 10,但 Kpp 的值为 1 10 10...
if I make Kp here zero but here Kpp is '1' so we have seen that the value of Kp was 0 to 10 but the value of Kpp was 1 10 10...
这就是你进行缩放的方法,如果你在 SCL 中这样做,这很容易...所以这就是这是我知道的家庭作业,但你还没有完成或者我不知道,所以这就是你的方法可以做到 ..
this is how you do the scaling and this is very easy if you do it in SCL alright ...so this was the this was the homework which I know but you haven't done or I don't know so this is how you can do it ..
好吧,现在如何扩展价值让我们继续处理 HMI 我们必须做的事情我们今天有一些任务,我将打开作业,第一个任务是......
all right how to scale the value now let's proceed with the HMI what we have to do we have some task of today and I will open the assignment the first task was....
好的,您将在本作业中学到什么 1) 制作用于电平控制的 HMI 屏幕。
ok what you will learn in this assignment 1) Making HMI screen for level control.
2) 在 HMI 屏幕中标记 PLC 地址。
2) Tagging PLC addresses in HMI screen.
3) 通过 HMI 可视化和控制工厂。
3) Visualizing and controlling the plant via HMI.
4)增加手动超控开关。
4) Adding manual override switch.
这是我们要做的四件事。所以它说的第一件事是在 HMI 屏幕上读写 Kp、设定点、错误、反馈。
These are the four things we are going to do..So the first thing it says read write the Kp, set point, error, feedback on HMI screen.
因此,我们必须制作一个屏幕,并且必须读取和写入值,以便继续进行。
So we have to make a screen and we have to read and write the values so to proceed with that..
让我们打开你的程序,因为它是一个HMI,我们必须添加一个新设备,所以去添加新设备,在这里你可以选择你的HMI..
let's open your program and since it's an HMI we have to add a new device okay so go to add new device and here you can select your HMI..
在 HMI 中,您可以选择您想要模拟的 HMI...
in the HMI you can select your HMI whichever that you might you want to simulate...
所以我将使用此显示器,因为这也是我实验室中已有的显示器..所以我们正在使用此 HMI ...选择您的 HMI ..单击“确定”,一旦您单击“确定”,就会出现一个向导..这将询问您需要放入 HMI 和启动设置中的其他设置,这就是向导。
so I will use this display because this is the display which I already have in my lab as well..so we are using this HMI ...select your HMI ..click ok so once you click 'OK' there will be a wizard..which will ask you for other settings which you need to put in the HMI and startup settings so this is the wizard.
现在第一件事是我们必须选择PLC......
Now the first thing is we have to select the PLC...
所以选择这里..
so select here..
这是我们已经在这里添加的PLC,所以它会自动出现,如果您还没有添加PLC,则不会出现,所以单击..选择,您会说它已自动连接到PLC,这是西门子的优势蒂亚..
this is the PLC which we have already added here so this will come automatically if you haven't added a PLC this will not come so click..Select and you will say this has been connected to PLC automatically ok this is the advantage of Siemens TIA..
所以单击下一步,这些是有关标题颜色的默认设置,所以我现在不想更改它,所以我只需单击下一步...下一步..
so click Next and these are the default settings about the colors of the headers so I don't want to change it as of now so I'm just going to click Next ...Next..
接下来完成这个向导..所以一旦我点击完成,你就会拥有你的HMI..
Next and finish this wizard..so once I click on finish you will have your HMI..
人机界面..
HMI ..
文件夹..子文件夹在这里准备好,现在可以在这个HMI文件夹中..
folders ..sub-folders ready here ok now in this HMI folder..
我们必须创造这里所要求的这些东西..
we have to create these things which has been asked here..
Kp、设定点、误差、反馈和阀门输出是否正常?
Kp, set point, error, feedback and valve output ok?
所以我要做的第一件事就是改变这张图片的背景,因为我不喜欢这种灰色,我要把它变成白色,所以只需双击屏幕,你就会看到这个背景颜色..
So the first thing I'm going to do is I'm going to change the background of this image because I don't like this gray color I'm going to make it white so just double click on the screen and you have this background color..
我最喜欢白色,所以我在这里放白色,这是文本,这是屏幕零,因为在屏幕中,如果你看到这里......我们有一个屏幕零,这是根屏幕,所以这是根屏幕如果我单击此按钮,我将移动到屏幕零,所以我们这里有两个屏幕,但由于我不需要更多屏幕,我可以删除此按钮,也可以删除屏幕零!?
I like the white color the most so I'll just put white here and this is the text and that's the screen zero because in the screen if you see here ...we have a screen zero and that's the root screen so this is the root screen if I click on this button I will move to screen zero so we have two screens here but since I don't need more screens I can delete this button and also I can delete screen zero!?
因为我们不需要更多的屏幕,我们对一个屏幕很满意。
because we don't need more screen, we are happy with one screen..
这是标题——对于标题,我可以写“液位控制”,无论你希望什么,你都可以更改标题,我想让它大一点,15 可以吗?
so here this is the title -- for the title I can write 'Liquid level control' okay whatever you wish you can change the title and I would like to make it a little bigger 15 is okay?
现在第一件事是我们必须写下“增益”,现在我们可以从这里获取一些文本,为了您的方便..
Now the first thing is we have to write the 'gain' okay now we can take some text from here okay and for your convenience ..
我将其放大以便您可以轻松看到?
I will zoom it so that you can see easily?
是的..
yeah..
现在没关系..所以在这里我会写下位置增益,这是你的KP 好吧,并且..
now it's okay ..so here I will write positional gain which is your KP okay and..
我们还需要什么?
what else we need?
我就直接复制粘贴...
I will just copy paste...
输入文本比例增益,然后我们需要设定点...
put the text Proportional gain and then we need set point...
设定点与我们从这里给出的内容相同,好吧,我们现在用 HMI 替换这个面板,所以我将删除所有这些按钮和电位计,我们不需要这个面板,现在我们有一个 HMI,所以设定点来到这里复制粘贴然后我有一个反馈反馈是传感器...
set point is the same thing which we were giving from here okay we are replacing this panel with HMI now so I'll delete all these buttons and potentiometer we don't need this panel now we have an HMI so setpoint comes here copy-paste then I have a feedback feedback is the sensor...
这是安装在这里的传感器..
it's the sensor which is installed here..
这是向我们提供有关级别的反馈。好吧,让我看看您是否有问题?
this is giving us a feedback about the level..okay let me see if you have a Question ?
。
.
所以 ..
So ..
反馈后我们有...
after feedback we have ...
我们有什么?
what do we have ?
我们有错误,好吧,错误将是您的传感器和设定点之间的差异?
we have error okay error will be the difference between your sensor and your set point?
好吧,设定点和反馈之间的差异是错误......
okay difference between set point and feedback is the error ...
所以我想这些是被问到的四件事和阀门输出..
so I guess these are the four thing which was asked and the valve output ..
稍后我们在这里制作阀门时会用到。
we will use later when we make the valve here.
好的,这些是在进行...之前的四个值。
Okay so these are the four values now before making the ...
使数字显示正常,我们也可以在这里完成,只需拖动此 I/O 显示 - I/O 字段即可。
making the numeric display all right we can do it here as well just drag this I/O display - I/O field..
这是输入输出字段,您只需将其拖到这里和这里......
this is input output field you just drag it here and here ...
这是你的输出,所以双击这个,你就有了一般属性,模式应该只是输出,因为这只是显示。
this is your output so double click this one and you have the general properties and mode should be only the output because this is just the display..
这不是输入,只是为了这个外观,我不喜欢它的宽度..这太大了,所以我会减少它并使其像这样,这样这是比例增益...
it's not the input and just for this appearance I don't like it's width..which is too much so i will reduce it and make it like this so that's a proportion gain ...
我将复制粘贴使其设置点与反馈和错误相同。
I will copy paste make it same for the setpoint same for the feedback and for the error..
现在这里的反馈是输出,可以吗?
all right now here the feedback was the output that's okay?
错误也是输出..
Error is also the output..
没关系..
its okay..
但设定点已输入..
but the set point was input..
所以你可以让它输入/输出..
so you can make it input/output ..
这样,如果程序中某处发生更改,它也会显示设定点,因此输入/输出是比例增益设定点的最佳选择,并且您有输入和输出好吗?
so that it also displays the set point if it was change somewhere in the program so input/output is the best choice for setpoint for proportional gain as well you have input and output okay?
所以让我把它拖到这里让它看起来更好我要拖它..
So let me just drag it here to make it look better I'm going to drag it..
这里反馈并在这里编辑好吧,这是我们这里有的四件事,但问题是我们如何将这个数字输入链接到我们的 PLC 程序?
here feedback here and edit here okay so these are the four things we have here but the question is how we will link this this numeric input to our PLC program?
这就是问题所在?
That's the question?
让我们回到 PLC 程序,因为当您对 HMI 进行编程时,PLC 和 HMI 编程是一起进行的,所以这就是比例控制逻辑。
So let's go back to the PLC program because when you are programming your HMI - PLC and HMI programming goes together so here that's the proportion control logic.
下线?
Go offline?
ID34 是之前的设定点,所以这个 ID 34 如果您注意到这里是来自面板的设定点,好吧,因为我们要更换面板,所以程序中不需要 ID34...
ID34 was the set point before so this ID 34 if you notice here was this one into the set point coming from here the panel okay so since we are replacing the panel we do not need ID34 in the program...
所以如果我说我删除这个面板转到停止我不需要这些按钮所以我们现在没有任何面板在驱动程序中也没有任何东西连接到这里,而不是需要电平表?
so if I say I remove this panel go to STOP I don't need these buttons so we don't have any panel here now In the driver as well there is nothing connected to here, instead of level meter which is required?
所以!?
So!?
在设定点中删除设定点...
in the set point delete the set point...
传感器没问题..
sensor is okay..
kp你要删除吗?
Kp you have to delete?
因为我们从 HMI 给出了这两个值?
because these two values we are giving from HMI?
好吧,这两个值来自 HMI,所以我们删除来自外部的地址?
Okay these two values are coming from the HMI so we remove the addresses which were coming from outside?
好吧,现在我可以给设定点一个数据地址了,所以让我们采用 MD40,这是一个数据地址,我将其用作设定点的实数。
okay now the set point I can give a data address okay so let's take MD40 this is one data address which I am using as a real for the set point..
同样,如果是 Kp,你可以写 MD45 好吗?
same in case of Kp you can write MD45 okay ?
这就是我们的 Kp,现在我们有了排水值和填充值……这些是我们稍后将使用的输出,所以首先我们有 Kp 和设定点。
that's our Kp now we have a drain value and filling value ...these are the outputs which we will use later so first we have Kp and set point.
所以去你的HMI..
So go to your HMI..
设定点是MD40...Kp是MD45。
set point was MD40 ...Kp was MD45.
转到您的 HMI ...选择此标签,然后转到其标签属性,选择此标签并将其放大..
Go to your HMI ...select this tag and then go to it's tag properties select this one and make it bigger..
在左侧,您将看到 PLC - PLC 标签标准变量。
and on the left hand side you will see PLC - PLC tags standard variables..
所以设定点是 MD40 如果我没记错的话...所以选择这个..
so set point was MD40 if I'm not wrong ...so select this one..
所以就像这个,抱歉,这是比例增益..让我再次检查一下 Kp 是 MD45 比例增益是 MD45 好的,所以回到这里我们在这里看到一些错误...
so like this one sorry it was proportional gain..let me just check again Kp is MD45 proportional gain is MD45 okay so going back here we see some error here ...
不应该有任何错误,我需要检查,因为我们的 HMI 没有正确连接,我认为有问题?
there should not be any error I need to check Since our HMI is not connected properly I think there is a problem?
我可能必须再次添加HMI..
I may have to add HMI again..
连接存在一些问题,因为一旦您在 HMI 连接中验证了这一点,它应该在此处显示您的 PLC。
there is some problem with the with the connections because once you verify that in your HMI connections it should show your PLC here..
好吧,在 HMI 中,当您继续连接时,它会在此处显示 HMI 连接。
alright in the HMI when you go on connections it shows HMI connection here..
如果您没有看到这里的 PLC 连接,那么当您要标记地址时,这将是一个问题,现在您可以看到这里是红色的..
the PLC connection here if you don't see that it will be a problem when you're going to tag the addresses now you can see here this is red ..
这个红色意味着HMI没有正确地与PLC连接,所以为了避免这种情况,我们必须确保我们的连接是好的,并且这个连接自然应该是好的,因为HMI已连接到PLC,但是如果我们看到设备和网络是的,这个这是未连接的,所以我们必须连接这个 - 添加子网络..
this red means the HMI is not correctly linked with the PLC so to avoid that we have to make sure our connection is ok and this connection should be naturally be ok because the HMI is connected to PLC but if we see the device and networks yeah this is this is not connected so we have to maybe connect this one - add sub netowrk..
让我尝试一下这种方式应该是这里的一些选择我想我必须再回去......
let me just try this way should be some option here I think I have to go back again...
那么设备配置有问题让我们保存这个项目并再次打开它吗?
so the problem with the device configuration Let's save this project and open it again?
这个问题在 TIA 中有时会出现,因为 TIA 目前处于测试模式,软件中存在一些错误,所以有时我们必须处理这些错误?
This problem comes sometime in TIA because TIA is in a beta mode right now and there are some bugs in the software so sometimes we have to deal with the bug?
是的,现在它已经连接了,所以我希望它应该连接在这里,让我们看看我是否可以上网——如果它有效,这是一个非常关键的部分,一旦你有一个良好的连接,你就可以将你的PLC连接到HMI,那么事情就变成了很容易,所以这也是行业中出现最多的故障排除部分。
yeah and now it's connected so I hope it should be connected here now let's see if I go online -- if it works this is a very crucial part and you're linking your PLC to the HMI once you have a good connection then things becomes easy so this is the most troubleshooting part which occurs in the industries as well..
当您要将 HMI 与 PLC 链接时,现在我要模拟我的 PLC 并查看 HMI 是否检测到它。
when you're going to link your HMI with your PLC so right now I'm going to simulate my PLC and see if it been detected by the HMI..
所以 PLC 模拟没问题,但 HMI 仍然没有连接 - 好吧,所以我要做的是......我将再次添加 HMI,因为如果您的 PLC 正常并且这是您唯一可以做的事情人机界面未连接..
so PLC simulation is okay but the HMI is still not connecting - all right so what I'm going to do is ...I'm going to add the HMI again because that's the only thing you can do if your PLC is fine and HMI is not connected..
我们必须很快再次添加它..
we have to add it again very quickly ..
我就这么做..
i will just do it..
因为一切都很好,然后你必须检查连接是的,现在你可以认为它说的是 - 电台、合作伙伴和模式..
since everything is okay and then you have to check connection yeah now you can think that it's says - station, partner and mode..
现在一切都好吗?
everything is okay now ?
现在我们可以继续处理我们的屏幕了,所以您可以原谅我花在故障排除上的时间,但我希望您能了解到,如果您的 HMI 无法工作,那么您可以很快做完,我会再次回到我之前所做的事情对于比例增益,让我们回到增益。
Now we can proceed with our screens okay so you can excuse the time I took for troubleshooting but I hope you will learn that if your HMI is not working that's what you can do okay so very quickly I will again to what I was doing before now for proportional gain let's go back to gain.
对于增益,我采用 MD 45,设定点是 MD 40 ...
For gain i took MD 45 and set point is MD 40 ...
所以获得 MD 45 稍等一下,这里回到 plc 标签...
so gain MD 45 wait a second General here go back to plc tags...
MD45 ,所以现在你可以看到没有红线,因为标签已链接......
MD45 , so now you can see there is no red line because tag is linked...
HMI 链接的设定点是 MD40 只需转到此处..
HMI is linked set point was MD40 Just go here ..
放MD40可以吗?
put MD40 all right?
现在反馈...
now the feedback...
好的,反馈是什么?
okay the feedback is what?
反馈是我的传感器..抱歉..反馈是这个传感器,如果您看到驱动程序连接到ID30,那么这个传感器是一个电平表,所以我们将采用这个地址,好吗?
Feedback is my sensor ..sorry ..feedback is the sensor this one and this sensor if you see the driver is connected to ID30 this is a level meter so we will take this address okay?
我们可以连接它...所以在我们的PLC中,如果您看到传感器连接到ID30,那么我们必须直接获取这个标签..所以这是反馈,或者如果您想要我可以写入(从传感器)并选择这个再次转到标签并查看 ID30 是在哪里...
we can connect it ...so in our PLC if you see the sensor is connected to ID30 so we have to take this tag directly ..so this is the feedback or if you want I can write (from sensor) and select this one again go to tag and see ID30 is where...
它就在这里,所以这就是 Tag5 ..
it's here so that's the Tag5 ..
选择这个,这就是您标记的方式..
Select this one So that's how you tag..
这就是连接 PLC 和 HMI 的方式..
that's how you link PLC and HMI ..
接下来是现在的错误 现在,如果您转到主块,您不会在这里看到任何错误,那么这很有趣,那么如何给内部出现错误的标签。
Next is the error now Now that's interesting if you go to your main block you don't see any error here so how to give a tag the error was coming inside..
错误就在这里..
error was here..
那么如何将这个错误带到主块之外呢?
So how to take this error outside the main block?
那是另一个话题了...
That's a different topic...
因此,为了做到这一点,我们首先将获取输出,如果您还记得我在上一课中解释了您将在此变量图中获取的输入和输出..变量表...
so to do that first we will take the output, if you remember I explained in the last lesson the inputs and outputs which you will take in this variable graph ..variable table...
这将显示在主块中,好吧,所以当您进入另一个(输出)块并写入“显示错误”好吧,该值是真实的..现在这是错误,我们必须将此错误的值放入我们的错误显示..这样我们就有了输出...
that will be displayed in the main block okay so when you go inside take another (Output) block and write 'Error for display' okay The value is in real ..now this was the error we have to put the value of this error in our error display ..so that we have an output...
所以我们就写 error display = error 就这样了?
so we'll just write error display = error that's it?
所以现在当你回到你的主块时,它显示为红色,因为我们已经更改了块..右键单击更新,好的,现在你有一个错误显示,所以我们可以给它一些标签,让它成为 MD50 ...好的现在我们有一个错误标签..
So now when you go back to your main block this is shown in red because we has changed the block ..right click update okay now you have an error display coming out so we can give it some tag let it be MD50 ...ok now we have a tag for error..
所以回到你的根屏幕,这就是错误,并给它适当的标签 - MD50 好吗?
so go back to your root screen and this is the error and give it the appropriate tag - MD50 ok?
这就是我们标记所有 4 个数字输入输出显示的方式吗?
So that's how we have tagged all 4 numeric input-output display?
现在的问题是......我们必须改变它的格式,你可以看到有这么多小数,但值来了......这些值以小数形式出现,好吗?
Now the question was ...we have to change its format you can see there are so many decimal but the values are coming ...the values are coming in decimals ok?
价值观就是这样来的?
this is how the values are coming?
要以小数表示,我选择这个,我们知道我们的值范围仅从 0 到 10,因此您将格式更改为最合适的格式,因为最大值将为 10 点 0,所以 99.9 是一种很好的格式?
To have it in decimals I select this one and we know that our range of values only from 0 to 10 so you change the format to this one which is most likely suitable because the maximum value will be 10 point 0 so 99.9 is a good format?
所以你可以看到格式已经被类似地改变了,这里看起来不错,这里看起来更好所以所有四个变量都更改为具有特定单位的分数显示。
So you can see that the format has been changed similarly here this looks ok and here as well this looks better So all the four variables are changed to fractional display with certain unit.
我可以一起做...
I can make it together...
好吧,现在您所要做的就是..您已经定义了这些值...我们已经定义了数据寄存器,您必须首先在PLC中下载该逻辑...
okay now all you have to do is ..you have defined these values ...we have defined the data registers you have to download this logic in the plc first...
因为我们已经在线进行了一些更改,并且您还必须下载 HMI,因此单击此处的 HMI 并转到此开始模拟。
because we have made some changes go online and you also have to download your HMI so click on the HMI here and go to this one Starts simulation..
所以一旦你开始模拟,它会打开一个像这样的窗口,让我们在这里打开它,好吧......
so once you start simulation it will open a window like this one and let's open it here ok so...
现在...
right now...
你可以看到一切都是 0 没有设定点,进水阀关闭,排水阀关闭,因为一切都是“0.0”,所以让我们给出一个设定点,但在给出设定点之前我们必须给出一个“增益”。
you can see that everything is 0 There is no set point, fill valve is closed, drain valve is closed because everything is '0.0' so let's give a set point but before giving set point we have to give a 'gain'..
所以我在设定点上给它“5.0”,我需要“5.0”,所以一旦我给“5.0”,你可以看到填充开始,它开始填充该值,它将达到“5.0”。
so I'm giving it '5.0' in set point I need '5.0' so once I give '5.0' you can see that filling starts and it starts filling the value and it will reach up to '5.0'..
你可以看到..
you can see that ..
一旦它匹配..
once it will match..
填充将停止 让我看看这个的体积是否..
filling will stop Let me see if the volume of this..
好吧,现在您可以看到错误正在变为“0.0”所以,现在正在发生同样的事情,但唯一的区别是我们是从 HMI 进行操作...现在如果我将设定点设置为“2.0”..
okay now you can see that error is getting '0.0' So, the same thing is happening now but the only difference is we are doing it from the HMI ...now if i make set point '2.0' ..
您将看到价值将减少并且排水已开启,错误位于“-”中..
you will see value will decrease and draining is on and the error is in '-' ..
因为我们知道当您耗尽并且达到“2.0”时,值错误为“-”。
because we know that the values error is '-' when you're draining and when it reaches to '2.0' ..
这将停止排水......
this will STOP draining ...
如果您到目前为止有任何疑问,您可以问我这是任务 1 这是一个比例控制,现在如果我将增益增加到“6.0”或可能增加到“8.0”,值(级别)将填充得更快,因为增益是现在增加了现在已经填充了 80%,并且填充速度会更快,好吧,这是任务 1..
if you have any doubt up till here you can ask me this was the Task 1 This is a proportional control now if I increase the gain to '6.0' or maybe to '8.0' the value (level) will fill faster because the gain is increased now Now it's 80% filling and filling will be done faster okay this is the Task 1..
我们只需读/写 Kp、设定点、错误、反馈、阀门输出..
we have to just read/write the Kp, set point, error, feedback, valve output..
我稍后会做,因为这与我们的第二个任务相关联,所以如果我在第二个任务中做的话会更好。所以如果你愿意的话,如果你有这个页面,你可以编写我在 PLC 中输入的代码。 .仅供参考第二个任务是 - 画出水箱、阀门和管道以可视化该过程,这非常有趣!?
I will do it later because this is linked to our second task so this will be better if I do it in 2nd Task..so if you want you can if you have this page you can write the code which I entered in the PLC..just for your reference 2nd Task is - Draw the tank, valves and pipes to visualize the process this is very interesting!?
如果可能的话,对水箱、管道和阀门进行动画处理。
Animate the tank, pipes and valves if possible..
好的,我们可以在 HMI 中制作动画吗?
okay we can do the animation is well in the HMI?
首先我们要画它?
First we have to draw it?
现在有趣的部分来了..
So now comes the interesting part ..
我会回到我的 HMI 这里!?
i will go back to my HMI Here!?
所以我需要一些空间,所以我就在这里让它好 - 首先我们将绘制坦克..要绘制坦克,你可以使用此处的栏选项,因为这更像是坦克......
so I need some space so I will just make it here okay - first we will draw the tank..To draw the tank you can use the bar option here because this is more like the tank...
所以你可以把这个酒吧现在看起来像一个酒吧,所以我们可以改变它的外观,看起来像一个坦克......一点点,所以只需双击这个,你就会进入属性,所以首先让我们谈谈外貌...
so you can take the bar so right now it looks like a bar so we can change its appearance to look like a tank ...a little bit so just double click this one and you will go to the properties so first let's talk about the appearance...
外观中有我不想要的单元格标记,因此我可以将其从此处和边框类型中删除。
in the appearance there are cell marks which I don't want so I can remove it from here and the border type..
所以我会把它做成这样和鳞片-我不想要任何鳞片...所以现在它看起来或多或少像一个坦克,在外观上我也希望它的背景颜色是白色我会告诉你为什么我这样做......所以这是我的坦克可以给它......现在会是什么......
so I will make it like this and the scales- I don't want any scales ...so now it looks like a tank more or less right and in the appearance I would also like its background color to be white I will tell you why I did that..so this is my tank okay to give it ...now what would be the what will be the..
这个水箱的标签..这个水箱正在复制这个填充物好吗?
tag of this tank ..this tank is replicating this filling okay ?
填充的反馈来自这里的传感器 - “液位计”,所以我们必须在这里给出液位计的标签,好吧,所以要添加一个液位计,只需双击这个,我们就知道我们的液位仪表是 ID30..好吧,这是 ID30..
and the feedback of filling is coming by a sensor which is here - 'level meter' okay so we have to give the tag of level meter here okay all right so to add a level meter just double click this one and we know that our level meter is ID30..okay this is ID30..
因为在我们的驱动程序中,级别是 ID30,所以您可以从那里联系起来吗?
because in our driver the level is ID30 so you can you can relate from there?
好吧,我想说一次,我们指的是我们的输入是 ID30 的软件,它并不总是 ID 30,如果您使用模拟输入,寻址将会不同。
okay one more time I want to say that we are referring the software in which our input is ID30 it's not ID 30 always if you're using analog input the addressing will be different..
好吧,所以你必须确保你使用的模拟输入地址与模拟输出类似,这里是 QD30,但实际上它不是 QD30...
okay so you have to make sure what address you are using for analog input similarly for analog output is QD30 here but in real it's not QD30...
说明书上写的不一样?
it's different which is written on the manual?
好吧,所以你必须使用你在工厂中实际使用的地址..
okay so you have to use the addresses which you are actually using in the plant ..
其余的过程是一样的,好吧,所以是的,这是坦克,标签应该是 ID30 给它标签..
the rest of the process is same okay so yeah this is the tank and the tag should be ID30 give it the tag ..
所以让我们模拟一下这个并查看结果,然后它将制造阀门和管道,所以让我们回到这里,现在我们有水箱,我们有 HMI 屏幕,您可以看到这是准确的。
so let's just simulate this one and see the results then it will make the valves and the pipes so let's go back here now we have the tank and we have the HMI screen you can see this is exact..
这不完全正确,还有一件事我忘记了为什么它显示这个级别,这是因为我们没有改变最大比例......
this is not exact okay one more thing I forgot why it is showing this level and this is at this level because we did not change the maximum scale...
我们坦克的最大比例是 0 到 10,但这里的 0-100 应该是 0 到 10,一旦你把它设置为“10”,就可以了。再次进入模拟看看差异,现在就可以了!?
the maximum scale for our tank is 0 to 10 but here at 0-100 that should be 0 to 10 okay once you make it '10'..again go to the simulation to see the difference now it's okay all right!?
所以让我们选择更改设定点,现在这个值正在减少,这个值正在减少..
so let's choose to change the set point now this is decreasing and this is decreasing ..
在这里,您可以通过处理秤并用 PLC 地址标记它来根据实际过程中发生的情况简单地刺激罐液位。
in here this is how you can simply stimulating your tank level based on what's going on the real process by just taking care of the scale and tagging it with the PLC addresses..
现在您会看到的另一件事是,与真实植物相比,这是一个缓慢的模拟,这有点滞后。
now one more thing that you will see this is a slow simulation compared to the real plant this is little bit having a lag..
如何消除这种滞后?
how to remove this lag?
我们将在本课的最后部分了解如何使值快速进出。
We will understand that in the last part of this lesson how to make the values move quickly in and out okay..
那么我们现在就制作阀门吧?
so let's make the valves now ?
好吧,要制作阀门,您必须有一个库,您可以在其中找到阀门..所以,如果您在工具箱中看到这里,我们有图形...
Alright to make the valves you have to have a library where you will find the valves ..so if you see here in the tool box we have graphics...
在底部,您将看到图形以及 WinCC 图形文件夹中的内容。
here in the bottom you will see graphics and in WinCC graphic folder..
有许多图形,例如自动化设备,您有锅炉、传送带、管道、阀门、混合器,在这里您会找到一些阀门。
there are many graphics like automation equipment you have boilers boiler, conveyor belts, ducts, valves, mixers and here you will find some valves..
2 种颜色填充、2 种颜色、256 种颜色...这些是一些可用的阀门,但不知何故我不喜欢这些类型的阀门..所以我创建了自己的阀门..好吧,所以这也是可能的,您可以创建自己的图形所以如果你看到这个文件夹“我的图形文件夹”..
2 color fill, 2 colors, 256 colors ...these are some valves available but somehow I do not like these kind of valves..so I have created my own valves..alright so this is also possible you can create your own graphics so if you see this folder 'My graphic folders'..
我制作了一些像管道这样的图形..
I have made few graphics like for Pipes..
用于滚轮和阀门..这些是我自己创建的阀门..那么我是如何制作的?
for rollers and for valves..these are my own created valves..so how did I make it?
这你可以通过你知道的“绘画”来完成。
This you can do by you know 'Paint'..
Microsoft Paint 如果我向你展示我的桌面 我这里有这个西门子附加图形 我有阀门?
Microsoft Paint If i show you my desktop I have this Siemens add-on graphics here I have valves?
所以这是在 Microsoft Paint 中设计的,你可以改变颜色,所以我制作了三个阀门..红色、蓝色和橙色..
So this has been designed in Microsoft Paint and you can change the color so I made three valves..red, blue and and orange..
好的?
okay?
同样,我制作了三个管道,分别是流动的、不流动的和部分流动的。所以一旦你有了这三个文件,你就可以做动画了,这非常有趣,让我们回到我们的西门子 TIA 现在我需要一个阀门,所以我知道我这里有一个阀门,但我不会首先从这里直接添加到我的屏幕,我将转到我的文本和图形列表。
Similarly I've made three pipes which is flowing, not flowing and partially flowing..so once you have these three files you can do animation and that's very interesting let's go back to our Siemens TIA now I need a valve here so I know I have a valve here but I will not add directly from here to my screen first I will go to my text and graphic list..
转到这里,这里这是文本列表,我们不需要文本,我们需要图形...所以单击图形列表并单击“添加新”,这将是阀门...所以一旦您有了阀门图形在下面..选择这个阀门..在下面您可以定义您需要什么值的图形?
go here and here this is the text list we don't need text we need a graphic ...so click on the graphic list and click 'Add new' this will be let's say valve ...so once you have the valve graphic below that..select this one valve..below that you can define which graphic you need at what value?
所以在这里我将向您展示我将回到我的图形..阀门所以我们有三个阀门..让我们在阀门关闭时采取阀门...
So here I will show you I will go back to my graphics ..valves so we have three valves..let's take the valve when it is closed...
将其拖到此处,这是关闭时的阀门...然后是橙色的阀门,我的意思是...
drag it here this is the valve when it is closed ...then the valve by Orange I mean ...
阀门“部分打开”,好吧,然后蓝色,我的意思是阀门“完全打开”。
the valve is 'partially on' okay then by blue, I mean valve is 'fully on'..
这取决于您,如果您想“部分”显示,您也可以显示阀门关闭和阀门打开。
this is up to you if you want to display 'partially' you can also display valve OFF and valve ON..
但由于它是一种三帧动画,所以当阀门关闭时我现在使用“部分打开”。
but since it's a kind of animation three frames animation, i am using 'partially on' now when the valve is OFF..
当填充壁值为“0”时,阀门关闭。
valve is OFF when the value of filling wall is '0'.
我将在这里输入“0”,阀门完全打开,当值为“10”时,可以,当值在 1-9 之间时,阀门部分打开..好吧!...
I will put '0' over here and the valve is fully opened and when the value is '10' okay and the valve is partially open when the value is between 1-9 ..Alright!...
这就是定义图形值的方式,因此如果排水阀为“0”,则该图形将出现;如果排水墙在 1-9 之间,则该图形将出现;如果排水墙为“10”,则该图形将出现所以我要做的是..
this is how you define the values for the graphics so this graphic will appear if the draining valve is '0', this graphic will appear if the draining wall is between 1-9 and this will appear if the drain wall is '10' okay so what I'm going to do is..
而不是采用 '0' 或 1-9..
instead of taking '0' or 1-9..
我也可以采用 1-7,这里我可以采用 8-10,因为即使在“8.0”..阀门的*流量太多..
I can also take 1-7 and here I can take from 8-10 because even at '8.0' ..the valve is having too much *flow..
你知道液体太多了,这仅供参考......
you know too much liquid is coming this is just for reference...
这取决于你想要动画...
it's up to you you want to animate...
在什么值,但这是我更喜欢的,所以接下来我们必须..好吧,现在定义了阀门,返回到您的屏幕,我们需要一个阀门...在这里,所以从这里选择您的图形,您将在这里有一个阀门..
at what values but this is what I prefer so next is we have to ..Ok so valve is defined now go back to your screen we need a valve ...here so select your graphic from here you will have a valve here..
这就是我们刚刚创建的阀门,所以只需将其拖到这里这看起来有点奇怪,所以我们可以更改其外观,只需双击这个阀门,您就会看到外观,在这里我不需要任何宽度。样式是纯色的,填充图案是透明的,所以看起来不错..
just this is the valve..which we have just created so just drag it here This looks little weird ..so we can change its appearance just double click this one and you will see appearance and here I do not want any width..also the style is solid is fine and fill pattern is transparent so this looks nice..
比以前好 ...
better than before ...
所以让我调整它的大小并将其保留在这里,这就是我的填充阀..
so let me resize it and keep it here so this is my filling valve..
最后我可以为我的排水阀复制粘贴..好吧,让我把它放大,这样现在填充阀将有一些地址,该地址将类似于我们这里的填充阀这个QD30排水阀这个QD34所以QD30和QD34我们必须输入...排水QD34 ...
finally I can copy paste for my draining valve..okay let me make it bigger so now the filling valve will have some address that address will be similar to what we have here for filling valve this QD30 draining valve this QD34 so QD30 and QD34 we have to enter ...draining QD34 ...
这些 QD30 选择这个,所以 QD30 就在这里,这是我的填充物......
these QD30 select this one so QD30 is here this is my filling...
这是我的排水系统,将是 QD34 好吧,所以阀门已被标记..
this is my draining that will be QD34 okay so valves has been tagged ..
所以让我们看看结果..
so let's see the result..
让我们模拟一下,以及我们将如何看到这个阀门......
let's simulate that and how we are going to see this valves...
屏幕上还会出现一个问题,我会在向您展示场景的同时向您解释,好吗?
there is one more problem which will occur in the screen which I will explain you while showing you the scenario okay?
现在进水阀为“0”,排出阀为“0”,因此您可以看到两者都在等待...好吧,让我们更改设定点,因为没有发生任何事情,让我们转到“6”...在“6”处,您会注意到阀门有问题没有显示出来!?
right now fill valve is '0' and discharge valve is '0' so you can see that both are wait ...okay let's change the set point because nothing is happening let's go to '6' ...at '6' you will notice there's a problem valve are not showing!?
为什么它没有显示我现在会向你解释..
why it's not showing I will explain you now..
让我达到这个值..
let me just reach the value ..
现在你可以看到它被显示了..
now you can see that this is shown..
没有显示..
it was not shown ..
当它是 10.0 但现在它显示..
when it was 10.0 but now it is shown..
我会告诉你为什么,因为如果你看到我们的 PLC 逻辑?
I will tell you why because if you see in our PLC logic?
输出超过 10.0 让我们再看一遍,我将向您展示 HMI..
the output goes beyond 10.0 let's see that again here I'm going to show you the HMI..
现在这是灌装阀..
now this is the filling valve..
这是排水阀...
this is a drain valve...
我们知道输出是填充和排水的范围 0-10,但这里是因为*过程错误(设定点 - 反馈)..因为增益它超出了 0-10 ..
we know that the output is the range of the filling and draining 0-10 but here because of the *process error (setpoint - feedback)..because of the gain it goes beyond 0-10 ..
让我们再看一遍,所以我可能会在这里输入“2”,您会看到这是 -32 这是 30 ...当它在 0-10 范围内时,它不在我们的范围内。
let's see that again so I'll put maybe '2' here you'll see this is -32 this is 30 ...this is not in our range when it comes in the range of 0-10..
你会看到阀门..并且-14和-13的值不是...
you will see the valve..and this value of -14 and -13 is not...
不建议您使用 0 到 10 的范围,现在这个范围在这里,这样您就可以看到墙在这里,那么如何避免我们必须在程序中编写限制,好吗?
it's not recommended you should have the range 0 to 10 now this range is here so you can see the wall is here so how to avoid that we have to write the limit in a program ok?
该限制表示当阀门值大于 10 时阀门..
The limit says when the value of valve is more than 10 the valve..
值应为 10 - 阀门的最大限制应为 10,类似地,最小限制应为“0”,所以要定义这些限制,我将在这里写一点“IF 和 ELSE”语句...
should have the value 10 - the maximum limit of the valve should be 10, similarly minimum limit should be '0' okay so to define these limits it's little bit 'IF and ELSE' statement I will write here...
限制?
Limits?
这很容易,但有点工作..
it's easy but a bit of work..
我会为你做的现在回到这里,如果你不记得你可以在这里使用 IF_ELSE 结构,所以如果现在如果填充阀大于“10.0”,这就是问题,因为该值将变为 32 和 35 什么我们需要 ...
I will to do it for you Now go back to here if you don't remember you can use IF_ELSE structure here so if now if filling valve is greater than '10.0' which was the problem because the value is going to 32 and 35 what do we need ...
我们需要使填充阀等于“10.0”...
we need to make filling valve equal to '10.0'...
我将复制该值,以便阀门的值变为“11.0”时,该值将随着“10.0”移动 问题解决了吗?
I'll just copy that one so the moment value of the valve goes '11.0' this will be moved with '10.0' Problems solved?
同样,如果填充阀值小于“0.0”,则复制该值(如果它在“-”中,则应等于 0.0)。
Similarly copy that one if the filling valve value is less than '0.0' if it is in '-' that should be equal to 0.0.
就那么简单..
Simple as that..
所以我将复制这个逻辑-粘贴在这里而不是填充阀..我们有排水阀..排水墙的值超过十个排水阀应该是“10.0”..两个阀门相同..好吧,如果排水阀的值小于“0.0” 排水阀应该为“0.0” 好吧,让我们下载这个逻辑,让我们看看结果,现在你可以看到它是红色的..
so I will just copy this logic- paste here instead of filling valve ..what we have draining valve..the value of draining wall is more than ten draining valve should be '10.0' ..same for both the valves..okay if the value of drain valve is less than '0.0' drain valve should be '0.0' Alright let's download this logic and let's see the results okay now you can see it's red ..
我会回到“5”,这是打开的 - 100% 是关闭的..
I will go back to '5' and this is ON - 100% on this is OFF ..
现在这个值小于“8.0”,这将是橙色,如果是“0.0”,这将是红色......
now in the value of this goes less than '8.0' this is going to orange going to be orange and if this goes '0.0' this will be red ...
好的,这是填充阀..
okay so this is the filling valve..
阀门将停止..所以这是红色的..好吧..
the valve is going to STOP..so this is red ..Alright..
这就是你如何动画它并定义限制?
this is how you animate it and define the limits?
好吧,同样让我们回到 HMI 我们必须添加管道..好吗?
okay similarly let's go back to HMI We have to add the pipes ..okay?
对于管道,我将再次转到我的图形列表,因为我也将制作动画,这里 - 图形列表......
For the pipes again I will go to my graphic list because I've also we are going to animate and here - graphic list...
我们有管道...现在在管道中您必须添加图形,所以我也有管道的图形。
we have pipes ...now in the pipes you have to add the graphics, so I have the graphic for pipe as well.
这是管道“空”时 这是管道“部分打开”时 这是管道“完全打开”时 好吧,现在值是 0 到 1..
This is when the pipe is 'empty' this is when the pipe is 'partially on' this is when the pipe is 'fully on' okay now the value is 0 to 1..
我不需要0到1...
I don't need 0 to 1...
0 是可以的,我可以用于阀门的值..1-7、8-10 所以这将是 1-7 这是从 8-10 好吗?
0 is okay the value I can use for the valve..1-7, 8-10 so this will be 1-7 this is from 8-10 okay?
这是我的管道,让我们回到我的根屏幕,从这里获取管道,您可以用一个管道来改变外观..
this is my pipe let's go back to my root screen and have the pipe from here little bit you can change the appearance with one..
固体..透明..好吧,这很好所以我只是将管道放在阀门旁边..使它看起来像是连接管道和水箱..
solid ..transparent..all right it's good So i just place the pipe next to the valve..make it look like that it's joining the pipe and the tank ..
所以这是你自己的创造力。
so this is your own creativity.
你如何做到这一点?
How you do that?
所以我会这样做..
so I will do it..
我真的会把它放在前面..
I will actually make it front..
看起来还不错..
that looks okay..
差不多所以我有..
pretty much so I have ..
我会复制这个管道..
i will copy this pipe..
为了我的排水,让它在这里,好吧,再次把它放在前面,也可以把它放在前面..
for my draining and make it here okay again bring it front and also - can bring it front..
好的,这些是管道,现在管道应该如何模拟,它将复制我的灌装阀的模拟..因为这是同一件事..
okay so these are the pipes now how the pipes should simulate it will copy the simulation of my filling valves..because this is the same thing..
阀门是多少阀门..打开它会复制这个正确的..
the valve is how much valve..is open it will copy this one right ..
所以我要把填充墙的模拟复制到这个管道..所以这个标签将是填充阀..是QD30 ..
so I'm going to copy the simulation for the filling wall to this pipe..so this tag will be filling valve..was QD30 ..
这里这个..
this one here..
也好,这不应该是 QD30,实际上应该一直是 100%,因为液体来自后面,所以理想情况下应该是 100%,所以我们可以做的是从这里删除这个,只取一个矩形把它放在这里,因为水一直在流……
also well this this should not be QD30 this should be in fact 100% all the time because the liquid is coming from the back so this should be ideally 100% so what we can do is this removes this one from here and just take a rectangle and just put it here because the water is coming all the time...
我希望你正确理解这一点并使其成为水的颜色,这没关系,这实际上会遵循动画,因为当它打开时,这是用于动画的,但这里......
I hope you understand the point right and make it color of water and this is okay this will actually follow the animation because when this is open and this is for the animation but here this...
这个排水阀..应该是控制的,所以这里将是动画,这将是完整的..
this drainage valve..should be control so here will be the animation this will be full..
好的,所以我可以复制那个,否则这个将是......
okay so I can copy that one or this will be...
这将是红色的......当这个水平低于或..
this will be red ...when this level is below or..
当关卡为空时,它应该为空......
this should be empty when the level is empty ...
所以我们能做的是我们将以不同的方式对其进行动画处理,因此应该使用排水阀的地址进行动画处理..所以它只是 QD34..
so what we can do is we will animate it differently so this should be animated with the address of draining valve..so it's just QD34..
好吧,我稍后会回到这个,让我们看看结果,好吧,这是我稍后要做的,现在你可以看到这是水来了,你必须填充然后点击让我们说“9.0”..到“9.0”时,这是完全开放的,所以关卡是..你可以看到关卡即将到来..
here okay I'll come back to this one later so let's see the result okay this is this I will do later now you can see that this is water is coming you have to do the filling then click on lets say '9.0'..by '9.0' this is fully open so the level is..you can see the level is coming..
我们会在后面的操作中在这里展示水..
we will show the water here in the later operation ..
稍后幻灯片,因为你必须理想地显示水即将到来..这是动画的另一部分,它是部分打开的,所以这里的关卡是部分打开的..
later slide because you have to ideally show that water is coming..that is the other part of animation this was partially open so the level is partially open here..
这是一种动画..
this is a kind of animation..
但当它关闭时,它就会关闭吗?
but when this is closed this will be closed?
好的...
Okay...
我希望这对于排水也有意义,因为它是完全打开的,所以这表明液体正在流出,当它部分打开时,你可以看到液位也降低了......
I hope this makes sense for the draining as well this is fully open so this is showing liquid is flowing out and when it is partially open you can see the liquid level also reduces ...
这没什么,这只是图形的变化,我们称之为时间动画......
this is nothing this is just the change of the graphics which we called some time animation...
当它关闭时,它将是红色的..好吧,但在这种情况下......
and when it is closed this will be red ..okay but in this case...
当级别大于“0.0”时,它应该是蓝色的,当级别为零时,它应该是空的,好吗?
this should be blue when the level is more than '0.0' and this should be empty when the level is zero okay?
所以要做到这一点,我们必须制作一个更多不同类型的图形,好吧,转到图形,我们将其称为“管道 2”,“管道 2”..
so to do that we have to make a more a different type of graphics okay go to graphic this let's call it Pipe 2 This Pipe 2..
两个只有 2 个状态..
two has only 2 states..
要么高要么低好吗?
either high or low okay?
所以在这里我将选取管道,它要么是流动的,要么是空的。
So here I will take the pipe it's either flowing or it's either empty..
当值来自...时它就会流动
its flowing when the value is from...
现在在这种情况下为 1-10 ..当值为“0”时它不会流动 好吧,所以这个值取决于液位值而不是阀门..这次是因为如果水箱已满或超过“1.0”这意味着水将通过这条管道流入这里。
now in this case 1-10 ..and it is not flowing when the value '0' Alright so this value depends on the value of the level not the valve..this time because if the tank is full or more than '1.0' it means water will come here in this pipe.
如果水箱是空的,水就不会流到这里,所以这是按照液位来的。
If the tank is empty water will not come here so this is following the level ..
所以回到你的将军那里去吧..
so go back to your General..
选择这个,级别的输入是 ID34 ..
select this one and the input for the level was ID34 ..
我们从这里知道吗?
we know that from here?
抱歉 ID30 --抱歉是 ID30 好吧现在让我们看看结果哦..这给出了中等水平..
Sorry ID30 --sorry it's ID30 okay now let's see the results Oh..that gives the medium level..
让我再检查一下...
let me check again...
抱歉,我没有拍摄确切的图形..管道 2..
sorry I did not took the exact graphic..Pipe 2..
改变它的外观...
change its appearance ...
我可否知道..
May i know..
谁的声音传来..
whose voice is coming..
可以请您将麦克风静音吗?
Can you please mute your mic?
好吧,这是在这里...现在..
okay this is here ...now..
让我们检查一下我没有给出标签的模拟保持情况。
let's check the simulation hold on a second I did not give the tag.
所以 ID30 好吧,现在已经填满了..所以设置点让我们输入“2.0”...所以这很耗电..
So ID30 okay now this is filled..so setpoint let's put '2.0' ...so this is draining ..
没有填充任何东西,这是如何对管道、水箱和阀门进行动画处理的部分..好吧,如果我将液位降低到“0.0”,您有任何问题可以问我吗..将点设置为“0.0”..它会下降,一旦液位变为“0.0”..该管道应该是空的..是的,几乎..
nothing is filling this is the part how you animate the pipes the tank and the valves..okay do you have any questions you can ask me now if I reduce the level to '0.0'..set point to '0.0'..it'll go down and once the level goes '0.0'..that pipe should be empty ..yeah almost..
这就是你展示坦克动画的方式吗?
so that's how you can show your animation of the tank?
您通常可以在此处添加更多内容,您还可以显示电机正在运行且正在旋转,因此我们可以在您的 HMI 屏幕上显示很多内容。
You can generally add more things here you can also show the motor is running it's rotating so there could be many things we can show in your HMI screen..
基于您所知道的简单图形或方法,您现在可以如何更改图形,让我们看看任务是什么,所以我们绘制了水箱..阀门..管道来可视化该过程,好吗?
based on the simple graphics you know or methodology how you can change the graphics all right now let's see the task what was the task so we have draw the tank ..valves ..pipes to visualize the process okay?
我们忘记的另一件事是我们必须展示阀门。
One more thing we forgot we have to show the valve..
输出在..
output on ..
HMI 屏幕可以做到这一点,我们只需转到您的 HMI ..现在我们必须显示输出 I/O 字段,在这种情况下我将选择它作为输出...好吧,我不喜欢它的外观,这是好的?
HMI screen okay to do that we just go to your HMI ..take I/O field now we have to show the output in that case I will select it as an output ...okay and I don't like its appearance this is okay?
现在这是我的确切地址。
Now this is the exact address of my my..
灌装阀..
filling valve..
所以你必须去常规 - 选择填充物..
so you have to go to General - select the filling..
馅料是QD30..
the filling was QD30 ..
如果我没记错的话..
if i am not wrong ..
这是填充物,我们必须将其格式更改为这个!好吧..
this is the filling and we have to change its format to this one !okay..
同样,我会复制...
similarly I will copy that...
粘贴在这里并在此处执行此操作,它将被排水..这是 QD34 我们可以验证 QD34 是排水填充是 QD30 可以吗?
paste here and do that for this one here it will be draining..which was QD34 We can just verify that QD34 was drain filling is QD30 that's okay?
因此,再次回到我们的 HMI 模拟这个以查看结果,这就是您将 HMI 寻址标记为 PLC 寻址的方式..这在这里没问题,所以让我们设置一个设定点“5.0”..您可以看到“10.0” '..
So once again go back to our HMI simulate this one to see the result so this is how you tag your HMI addressing to PLC addressing..this is here okay so let's put a set point '5.0' ..you can see the '10.0' ..
这个100%开放..
this 100% open ..
这是“0.0”,因此一旦达到“5.0”,就会关闭。
this is '0.0' this is closed so once it reaches '5.0'..
您将看到该值将发生变化,它将遵循此处的值。
you will see this value will change which will follow the value here..
在这里你可以看到值在减少..这里也在减少..
here you can see the values decreasing ..here is also decreasing..
所以现在您可以在 HMI 中看到工厂中发生的情况,您还可以看到阀门..打开和关闭等,类似地用于排水,我可以再次向您展示..这是排水输出,它是“10.0”,这意味着100%,并且随着价值的减少......
so now you're seeing what's happening in the plant in your HMI you can also see the valve..opening and closing and so on ok similarly for draining I can show you again ..this is the draining output it's '10.0' which means 100% and as the value is decreasing ...
现在我问你,模拟有一个很大的延迟,你知道这里的值并没有像这个一样减少,所以为了减少HMI的延迟..HMI中有一个设置,如果你转到HMI 标签 - 显示所有标签..
now I ask you that the simulation is having a big delay you know here the value is not decreasing as this one so to reduce this delay of HMI..there is a setting in the HMI and it's a very important settings if you go to the HMI tags - Show all tags..
现在这些是当我们将plc标签标记到HMI时HMI自动创建的标签?
now these are the tags which HMI create automatically when we tag the plc tag to HMI?
好的,如果您在这里看到这些标签设置,我们有“采集时间”,即一秒,这意味着 HMI 需要一秒才能从 PLC 获取值。
Ok so if you see these tags settings here we have 'acquisition time' which is one second this means HMI is taking once second to acquire the value from the PLC..
好吧,如果我们减少这个值,HMI 将真正快速地从 PLC 读取地址。所以让我们看看我们还有哪些其他值...
ok if we reduce this value HMI will real quickly read the addresses from the PLC..so let's see what other values we have...
我们的值范围从 100 毫秒到一小时,好吧。所以让我们把它设置为 100 毫秒,如果我把这个角放在这里并像这样拖动它,我现在可以在这里覆盖 100 毫秒的值,如果我模拟我的 HMI,它会比以前快得多,至少快 10 倍,所以让我们再次给出设定点,您可以看到结果。
we have the values ranging from 100 milliseconds to one hour ok ..so let's make it to 100 milliseconds and if I take this corner here and drag it like that I can overwrite the values of 100 milliseconds here now if I simulate my HMI it will be much faster than before at least 10 times faster so let's give the set point again and you can see that result..
现在你可以看到动画有点快了,我的意思是它的读取速度更快,你也可以..这个阀门..
now you can see the animation is bit faster I mean it's reading in faster rate and you can also ..this this valve ..
将以更快的速度按比例减少,这就是您可以增加动画的方法,使其...
will decrease proportionally at a faster rate this is just how you can increase the animation make it...
让你的动画更流畅好吗?
make the your animation more smooth okay?
与排水类似..这正在减少,你会在这里减少,你可以看到..好吧!所以是的...
similarly for draining ..this is decreasing and you will decreasing here here you can see..ok !So yeah...
这就是你可以模拟的方式,这就是任务 2 中所要求的?
that's how you can simulate and this was what has been asked in Task 2?
为了模拟..一切..现在任务3有点复杂,它说要在HMI中编写手动覆盖按钮的代码以切换到手动-自动模式,反之亦然。
To simulate..everything ..now the Task 3 is bit complex it says write a code for manual override button in the HMI to switch to Manual-Auto mode and vice-versa.
在手动模式下,提供两个用于填充和排水的数字输入。
In manual mode provide two numeric inputs for filling and draining.
因此,无论现在发生什么,这都是“自动”的,我们只需给出设定点,填充和排水就会自动进行。
So whatever happening right now it's all 'automatic' we just give the set point and filling and draining works automatically..
基于设定点和反馈现在我们需要手动覆盖..
based on the set point and the feedback Now we need a manual override..
假设维护工程师想要进行清洁,因此他想清空水箱,并且他不想实现自动增益和设置,他只是想让你知道清洁水箱或任何他想要手动打开输出的东西...
suppose the maintaining Engineer wants to do the cleaning so he wants to empty the tank and he didn't want to achieve an automatic gains and settings he just want to you know clean the tank or whatever it is he wants to manually turn on the outputs...
为此,我们必须在这里提供一个手动按钮 - 手动模式好吗?
so to do that we have to provide a manual button here - manual mode okay?
因此,这涉及到一些编程,所以首先我们将返回到 PLC 并打开比例逻辑...现在,如果您看到输出是由这些值得出的,那么我们的“u”就是输出,好吗?
So for that there is a bit of programming involves so first of all we will go back to our PLC and open the proportional logic ...now here if you see the output is coming by these values our 'u' is the output okay?
这些值应该只出现在“自动模式”中,所以这是一种“比例控制自动模式”,我们需要一个手动模式,对于手动模式,我们需要一个按钮......对于按钮,我们需要一个输入......对于输入,我们需要一个布尔位......
And these values should only comes in the 'auto mode' okay so this is a kind of 'proportional control auto mode' we need a manual mode for the manual mode we need a button ...for the button we need an input ..for the input we need a Boolean bit...
所以点击插入行写入..
so click on insert row write..
手动按钮或位任何手动按钮和按钮始终是布尔值,可以在此处放置布尔值,在这里我要写一个“IF_ELSE”语句,好吧,把它写成“IF_ELSE”,所以如果按钮被按下,假设我会写如果手动按钮是等效的现在到“1”,在这种情况下应该发生什么,无论我要在 HMI 中输入什么值......我必须在这里手动输入数字输入......
manual button or bit whatever manual button and button is always boolean to put boolean here and here I'm going to write an 'IF_ELSE' statement okay put it 'IF_ELSE' so if button is pressed suppose I'll write if manual button is equivalent to '1' now what should happen in this case whatever value I'm going to put in my HMI ...I have to give a manual input numeric input here...
所以让我们首先在这里定义它,这将是我的输入,所以选择这个,这是我的手动输入,...外观...好吧...所以这是我用于排水复制粘贴的输入,这是用于填充的..
so let's define it here first this is going to be my input so select this one this is my manual input and ...appearance ...okay ...so this is my input for the draining copy-paste this is for the filling..
好的,这个值应该进入阀门..返回编程,所以如果输入为ON,我们必须再定义两个输入,因此在输入中..
okay this value should go into the valve..go back to the programming so if input is ON we have to define two more inputs so in the input..
我会写一份填充..等待..填充手册,我还可以请您将麦克风静音,因为我听到一些干扰,所以我不知道来自哪个麦克风..它是这样..
i will write for filling ..wait..filling manual and also may I request you to please mute your mic because I hear some disturbances so I don't know from which mic..it is coming so..
如果你们没有任何问题,我请求你们所有人将麦克风静音,所以填充阀和排水阀..是两个输入,这是必要的,因为我们正在给出输入的值。
I request you all to these mute your mic if you don't have any questions so filling valve and draining valve..are two inputs this is necessary because we are giving the values from inputs..
从这里..
from here..
这将是我的填充输入..所以这将是填充..
this will be my filling input..so this will be filling..
这会耗尽好吗?
this will be draining okay?
所以..
So..
回到我的比例逻辑,是的,如果手动按钮为真,现在会发生什么?
going back to my proportional logic yeah if manual button is true now what should happen?
这个灌装阀..这个灌装阀..应该有灌装手册上的值,好吗?
this filling valve..this filling valve..should have the value from filling manual ok?
所以我会在这里写灌装阀..
So I will write here filling valve..
这是输出..
this is the output..
应该相当于填写手册好吗?
should be equivalent to filling manual okay?
好吧..这显示为红色地址..
Alright ..this is shown in red address..
哦,对不起,这不应该是布尔值,它应该是真实的,是的,所以你知道手动按钮是否打开..无论手动中的值是什么..我们将从HMI输入..
oh sorry this should not be boolean it should be real yeah so you understand if the manual button is ON..whatever the value is in manual ..this we will enter from the HMI..
将进入灌装阀...好吧,同样...
will go into the filling valve...okay similarly ...
排水阀相当于排水手册好吗?
draining valve is equivalent to draining manuals okay?
仅当手动按钮为高 (1) 时才会发生这种情况,否则意味着..
this should only happen if the manual button is High (1) okay else means..
如果 else 语句中的手动按钮为低 (0),“自动逻辑”应该可以工作..
if the manual button is Low (0) in else statement 'auto logic' should work ..
所以我要做的就是把这个逻辑放在..
so what I'll do is I'll just put this logic ..
把它剪掉然后把逻辑放在这里好吗?
cut it and put the logic here okay?
因此,如果按钮打开 - 手动逻辑将工作。如果按钮关闭,“自动逻辑”将工作好吗?
So if button is ON - manual logic will work ..if button is OFF 'auto logic' will work okay?
那么让我们回到主块......
So let's go back to the main block...
更新块现在你有手动按钮,填充手册和排水手册......
update the blocks now you have manual button, filling manual and draining manual...
手动按钮,所以让我们给出一个*标签 - M100.0,您可以给出任何内存位..
manual button so let's give a *tag - M100.0 you can give any memory bit..
灌装手册我们给地址就像这个MD55,排水手册MD60..
filling manual let's give the address just like this one MD55, draining manual MD60..
所以填写手册是 MD55 培训手册是 MD60 所以回到你这里我们必须给 MD55 MD50 ...来到这里,MD60 来到这里..
so filling manual is MD55 training manual is MD60 so go back to your here we have to give MD55 MD50 ...comes here and MD60 comes here..
我们必须再次给出范围应该是这个..这看起来不错,这个范围也不错..
again we have to give the range should be this one ..this looks okay and this range is okay..
现在我们必须输入以区分输入和输出我还可以更改其颜色,以便我想要显示的输出...
now we have to input to differentiate the input from the output I can also change its color so the output I want to display...
现在你知道了......这完全取决于你......
now you know this ...this is totally up to you..
你想如何显示背景..
how you want to display the background..
我想给出黄色,这与逻辑无关。
I would like to give a yellow color this has nothing to do with the logic..
我想给一个输入绿色..
an input I would like to give green color..
好的,这就是我们之前在演示视频中的逻辑中所做的事情。
okay this is what we did in the logic before in the demo video..
这就是我的输入,您仍然需要一些文本,您可以获取文本并编写输入,这样用户就很高兴知道这里发生了什么,您就不会感到困惑......
so that's my input this you still want some text here you can take a text and write input okay so that user is happy about knowing what is happening here you will not be confused...
这是输出...
this is the output...
这就是反馈..再次复制此输入,将其放在此处,然后复制此输入,您可以将其放在此处...
that's the feedback ..again copy this input put it put it put it here and copy this one and you can put it here...
这里或这里以及任何你喜欢的..
here or here and whatever you like..
这是我的输入和输出..现在我们需要一个按钮,因为我们在程序中使用了该按钮,因此您可以将此开关用于手动和自动..
that's my input and output..now we need a button because we took the button in the program so you can take this switch for manual and auto..
好的,在这个开关属性中...
okay in this switch properties...
一般来说..
in general..
我将使用它作为带有文本的开关..这更合适..这是开,这是关,所以在开时我会写“手册”,因为当你按下时,手册将打开,在关时我会写“自动”,现在你可以看到颜色不好,所以我将更改其外观,文本的颜色应该是白色。
I will use it as switch with text ..which is more appropriate ..this is ON and this is OFF so in the ON I will write 'Manual' because when you press- the manual will be ON and in OFF I'll write 'Auto' and now you can see the color is not okay so I will change its appearance the color of the text should be white..
这更有意义,或者你也可以写手动模式,这里自动模式好吧,这看起来很棒..现在我们必须标记这个按钮,所以标签就是我们在PLC M100.0中给出的标签..
which makes more sense or you can also write manual mode and here auto mode okay This looks great ..now we have to tag this button so the tag was what we give in the PLC M100.0 that's the tag..
好吧,一切都好,现在让我们看看结果..
okay everything is okay now let's see the results..
所以我们还必须下载 PLC 逻辑,因为我们改变了编程......
so we have to download the PLC logic as well since we change the programming...
我下载了 PLC,现在是 HMI ...哦,有些问题。出了问题,等等。
I downloaded the PLC and now it's the HMI ...oh some problem .there's something wrong wait..
现在返回,您有“自动”和“手动”模式。
So go back now you have 'Auto' and 'Manual' mode.
现在是“自动模式”,它正在像以前一样工作..
Right now it's the' auto mode' it is working as it was working before ..
输入为“0.0”,这些是手动输入,好吧,一旦您进入手动模式,一切都会正常工作,现在在手动模式下,您有此输入吗?
inputs are '0.0' these are the manual inputs okay everything is working fine once you go to the manual mode now in manual mode you have this inputs okay?
因此,如果我给这个填充“6.0”,它将开始填充水箱......
So if I give this filling '6.0' it will start filling the tank...
它不取决于现在的设定点..
it does not depend upon the set point now ..
所以将其设置为“0.0” - 填充将停止..
So make it '0.0' - filling will STOP..
如果我想排水,我会输入并输入“9.0”,排水正常,输出是反馈。您也可以同时进行填充和钻孔,在这种情况下,水箱将维持液位,因为填充和排水是一起进行的,并且相同的 90现在有趣的是,如果我进入“自动模式”,它会遵循设定点——它只会从“6.7”到“8.0”,然后就会停止?
if I want draining I will input and put '9.0' and it is draining okay and the output is the feedback You can also do filling and drilling together in this case tank will sustain the level because filling and draining is doing together and the same 90% rate now the interesting thing is if I go to the 'Auto mode' it is following the set point --it will just go from '6.7' whatever to '8.0' and it will stop?
这就是您在 HMI 屏幕中添加“手动”和“自动”覆盖按钮的方法。
So this is how you can add 'manual' and 'auto' override button in your HMI screen..
如果您想要手动,只需单击手动或自动按钮即可。
if you want if you want manual just click the button manual or auto whatever.
这是“*手动”当前模式,您可以在此处写入文本...
This is '*MANUAL' the current mode you can write a text over here...
按下以更改模式,这将帮助用户了解此按钮的作用,也许我可以在此处添加文本“按下以更改模式”,再次来到这里...
press to change the mode which will help the user to understand what this button is doing maybe I can put a text here 'Press to change mode' right Again come here...
是啊,完美,好吧……
yeah perfect Okay...
这是“0.0”,所以是的,它现在关闭了,正在耗尽,好吧,还有一件事你会注意到,这是“0.0”,但这是“9.0”,输出是“9.0”,但输入是“0.0”,这是因为我已经给出了这个仅输入所以我..
this was '0.0' so yeah it's closed now it's draining okay one more thing you will notice that this is '0.0' and but this is '9.0' output is '9.0' but input is '0.0' this is because I have given this input only so I..
正如我所说,我更喜欢输入/输出,并确保这是输入/输出,以便它还读取来自 HMI 的反馈以获取最后一个值...
as I said I prefer input/output and make sure this is input/output so that it also reads the feedback from the HMI for the last value...
现在没关系...现在值是相同的...
now it's okay ...now the values are same...
三三..这是绿色的,有 5 所以这会降低级别..这就是今天这节课的目标,我们已经看到了如何创建标签......
three three..and this is green with 5 so this will decrease the level..So this was the objective of this lesson today we have seen how we have created the tags ...
我们已经看到了我们是如何制造坦克的。
we have seen how we have made the tanks..
阀门、管道……我们如何进行模拟,最后我们看到了如何制作“手动和自动超控开关”,而这只能借助 PLC 中定义的 SCL 逻辑……
the valves, pipes..how we have simulated that and in the end we have seen how to make a 'Manual and Auto override switch' and this is only with the help of SCL logic defined in the PLC...
这种逻辑使操作变得非常容易,您可以看到在主块中您有自己定制的比例控制逻辑块,它还读取设定点,读取传感器进行比例控制,还采用手动超驰并显示错误值和输出值?
and this logic makes the operation very easy you can see that in your main block you have your own customized proportion control logic block which also reads the set point, reads the sensor do the proportional control, also take the manual override and display the error values and output values?
所以这取决于你...
So it is up to you...
它会停止!?
it will stop!?
好吧,既然你在谈论手动模式,我们也可以先停在手动模式,让我们看看自动模式。
okay so you're talking about manual mode we can also stop in the manual mode first let's see in the auto mode.
学生:不,先生,如果处于自动模式..
Student: No Sir, if in Auto mode..
..由于 PLC 或其他 HMI 中的某些错误,如果...
..by some mistake in the PLC or some other HMI if...
灌装阀处于停止状态。
the filling valve is STOP.
指导员:你的意思是说如果在自动模式下PLC和阀门出现问题..不停止怎么停止呢?
Instructor: You mean to say if in the auto mode there is some problem in the PLC and the valve..is not stopping how to stop it?
是你的问题吗?
Is it your question?
学生:完全正确 教师:好吧,你在自动模式下看到了,让我们回到自动模式下的逻辑。
Student: Exactly Instructor: All right you see in the auto mode let's go back to the logic in the auto mode..
假设自动模式编程没问题......
suppose the auto mode programming is okay...
从PLC输出到阀门的输出为零..但是在阀门中..它变ON那么这意味着PLC模拟输出卡已经饱和?
from the PLC output is going zero to the valve..but in the valve..it is getting ON then it means that the PLC analog output card has been saturated?
通过饱和...
By saturated...
我的意思是,即使 PLC 的值变为零,它也会显示值“10.0”。
I means even if the value from the PLC is going zero it is showing the value '10.0'..
这就是所谓的PLC饱和..这是一个硬件问题..
this is called saturation of PLC..this is a hardware problem..
在这种情况下,你能做的就是只能读取该水箱的液位......并且你必须添加一个额外的......
in that case what you can do is you can only read the level of this tank ...and you have to add an extra...
例如,也许继电器可以打开和关闭。
maybe relay to turn ON and OFF for example..
我会在幻灯片中向你展示这一点..
I will show you that in maybe powerpoint..
这是一个保护系统的好问题 学生:是的,因为我们正在处理它?
It's a good question for protection of your system Student: Yes because we're dealing with it?
导师:好的..
Instructor: Alright..
假设这是一个水箱,您实际上可以使用开/关类型的阀门来代替继电器...继电器不是一个好主意,这是管道,然后我们有一个阀门..抱歉,假设这是您的模拟阀门..那么你必须添加另一个阀门..这是一个数字阀门..你不需要另一个模拟墙,因为模拟阀门非常昂贵..
let's say this is a tank and you can actually use an on/off type of valve instead of a relay ...relay is not a good idea this is the pipe and then we have a valve..sorry Suppose this is your analog valve..then you have to add another valve..here this is a digital valve..you don't need an another analog wall because analog valves are very costly..
所以你可以采取..
so you can take..
文字在哪里?
where is the text?
插入文本..采用数字阀..
Insert text..take a digital valve..
好吧,现在你明白了这个模拟阀的值是 0-10 伏,而这个数字墙只是开关型的......
here Alright now you understand this analog valve was getting the value 0-10 volts alright and this digital wall is only ON-OFF type...
现在,在自动逻辑的比例逻辑中,您可以再添加一行......
now in the proportional logic in the auto logic you can add one more line...
让我在程序中向您展示这是自动逻辑..您可以编写一个“IF_ELSE”语句,我不能在这里写,因为我没有数字阀..但只是为了注释如果级别为ID30。 。
let me just show you in the program this was the auto logic..you can write an 'IF_ELSE' statement I cannot write here because I don't have a digital valve..but just for the comment if the level which was ID30..
ID30是我们的水平..
ID30 was our level..
让我看看传感器...所以,如果传感器等于 10,那么数字阀会发生什么情况,我将在这里写下数字阀将变为 0(关闭)...
let me see the sensor ...so if sensor is equivalent to 10 and what should happen the digital valve I'm going to write here Digital valve is going to 0 (OFF)...
好吧,这就是阀门,如果这个阀门关闭,那么即使它打开,也不会填充..因为水来自这里,这是阀门的主要供应..所以首先我们有一个数字阀门..
okay this is the valve this one if this valve goes off then there will be no filling even if this is ON..because the water is coming from here this is the main supplying of valve..so first we have a digital valve..
我们必须首先将其打开...然后,如果自动模式失败,我们将执行自动模式..
we have to turn it on initially ...then we do the auto mode if auto mode goes FAIL..
如果这个阀门坏了,好吧...
if this valve is failed okay...
这不再起作用了,那么这将根据这里的水平而关闭,所以当它关闭时,将不会有填充?
this is not working anymore then this will be off based on the level here so when this goes off there will be no filling?
你明白我的意思了吗?
Are you getting me?
学生:是的,先生..
Student: Yes sir..
这是一个好主意,这个阀门是为了保护,否则如果一切正常,这将根据逻辑打开和关闭......
this is a good idea This valve is for protection otherwise if everything is ok this will be ON and OFF based on the logic...
但如果阀门出现问题,即使液位达到 100%,您也可以将其关闭。
but if there is a problem with the valve you can turn it OFF even if the level reach 100%..
这将始终处于关闭状态..即使阀门正在工作,它也会始终处于关闭和打开状态..
this will be OFF..all the time even if the valve is working this will be OFF and ON all the time..
但如果失败,这将被关闭..因此您的进程将被保存您还有其他问题吗...
but if this goes fails this will be OFF..so your process will be saved Do you have any other question ...
你们中的任何人或应该关闭这节课吗?
any one of you or should be closed the lesson?
学生:没有问题问我吗?
Student: No questions from me?
教练:好吧,我在这里看到一些消息 - 你是否看到了上一个问题以显示水平..
Instructor: Alright i see some message here - have you saw the previous problem to show level..
阅读..在工厂 I/O 中...当然我们已经展示了它 - Gaurav 我认为你迟到了我们..
reading..in the Factory I/O ...ofcourse we have shown it - Gaurav i think you were late we..
从我给你的作业开始这节课..
started this lesson with the homework which I gave you ..
所以这个问题已经解决了,很抱歉你迟到了..
so this has been resolved I'm sorry you were late..
如果你还没看过..
if you haven't seen it..
我们可以获取本次会议的视频吗?
can we get a video of this session.
Neha 如果您注册了西门子 S7-1200 课程,您可以询问 NFI 的讲师。
Neha if you're enrolled in the course Siemens S7-1200 you can ask the instructor in the NFI ..
这样他就可以给你访问权限..
so he can give you the access ..
然后你就可以看到本次会议的视频..
then you can see the video of this session..
否则,这将不会出现在 Facebook 或 YouTube 上,所以 Gaurav 和 Neha...如果您能听到我的声音,我希望我回答了您的问题,在此我要感谢大家加入我的行列...玩得开心吗?
otherwise this will not be in the Facebook or in YouTube so Gaurav and Neha..if you can hear me I hope I answered your query and with that I would like to thank you all for joining me ..and Have fun?
祝你今天过得愉快..
Have a nice day..
我们下一堂课再见,课程的更新...下一堂课会在 Facebook 上吗?
I'll see you in the next class and the updates of the class ...next class will be in the Facebook?
如果您没有看到更新..
If you do not see an update ..
这意味着没有课程,但如果您看到更新,则意味着将会有课程,好吗?
it means there is no class but if you see an update it means some class is going to happen okay?
好的,非常感谢,祝您度过愉快的一天?
Alright thank you so much and Have a nice day?
再见 ?
Ciao ?